package com.dao.Impl;

import com.dao.user.UserMapper;
import com.entity.User;
import org.apache.ibatis.session.SqlSession;
import org.mybatis.spring.SqlSessionTemplate;

import java.util.Date;
import java.util.List;
import java.util.Map;

public class UserMapperImpl implements UserMapper {
    private SqlSessionTemplate sqlSession;

    @Override
    public List<User> getUserLsit() {
        return null;
    }

    @Override
    public List<User> getUserLsit(User user) {
        return null;
    }

    @Override
    public List<User> getUserLsitByMap(Map<String, String> userMap) {
        return null;
    }

    @Override
    public List<User> getUserListByRoleId(Integer roleId) {
        return null;
    }

    @Override
    public List<User> getAddressListByUserId(Integer roleId) {
        return null;
    }

    @Override
    public int add(User user) {
        return 0;
    }

    @Override
    public int modify(User user) {
        return 0;
    }

    @Override
    public int updatePwd(Integer id, String pwd) {
        return 0;
    }

    @Override
    public int deleteUserById(Integer delId) {
        return 0;
    }

    @Override
    public List<User> getUserList(String userName, Integer roleId) {
        return null;
    }

    @Override
    public List<User> getUserByRoleId_foreach_array(Integer[] role) {
        return null;
    }

    @Override
    public List<User> getUserByRoleId_foreach_List(List<Integer> roleList) {
        return null;
    }

    @Override
    public List<User> getUserByConnditionMap_foreach_map(Map<String, Object> conditioMap) {
        return null;
    }

    @Override
    public List<User> getUserByRoleId_foreach_map(Map<String, Object> roleMap) {
        return null;
    }

    @Override
    public List<User> getUserList_choose(String userName, Integer roleId, String userCode, Date creationDate) {
        return null;
    }

    @Override
    public List<User> getUserList() {
        return null;
    }

    @Override
    public int deleteUserByUserRole(Integer userRole) {
        return 0;
    }

    @Override
    public List<User> getUserList(User user) {
        return sqlSession.selectList("com.dao.user.UserMapper.getUserList",user);
    }
    public SqlSessionTemplate getSqlSession(){
        return sqlSession;
    }
    public void setSqlSession(SqlSessionTemplate sqlSession){
        this.sqlSession = sqlSession;
    }
}
